﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcContrib.PortableAreas;

namespace nanoCMS.Core.WebUI {
	public class CoreRegistration : PortableAreaRegistration {
		public override string AreaName
		{
			get { return "Core"; }
		}

		public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context, IApplicationBus bus) {
			bus.Send(new PortableAreaStartupMessage(AreaName));


			context.MapRoute("CoreDefault", "Core/{controller}/{action}", new {controller = "user", action = "index"});
			RegisterAreaEmbeddedResources();

		}
	}
}
